package com.sky.mapper.user;

import com.sky.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where openid=#{openId}")
    User getByOpenId(String openId);

    void save(User user);
    @Select("select * from user where id=#{id}")
    User getById(Long id);
}
